package com.ftg.learn.chapter08.combination;

/**
 * @author kangjx
 * @createTime 2023/1/6
 */
public class B {

    private int privateInt = 23;

    int defaultInt = 24;

    protected  int protectedInt = 25;

    public int publicInt = 26;

    A a1 = new A();

    private String privateMethod(){
        return "B private method";
    }

    String defaultMethod(){
        return "B default method";
    }

    protected String protectedMethod(){
        return "B protected method";
    }


    public String publicMethod(){
        return "B public method";
    }

}
